package day11;

/**
 * @author oldliu
 * @since 1.0
 */
//usb鼠标
public class  USBMouse implements Usb {
    //品牌和价格
    private String brand;
    private int price;

    public USBMouse(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public void shine(){
        System.out.println(brand+"的鼠标有个闪光灯，blingbling....");
    }

    @Override //重写？？
    public void plugin() {
        System.out.println(brand+"的鼠标接入了usb口，出现了鼠标的那个小箭头");
    }

    @Override
    public void unuplug() {
        System.out.println(brand+"的鼠标被拔掉了，小箭头消失");
    }

    @Override
    public void work() {
        System.out.println("鼠标箭头在屏幕上移动。。。。。。");
    }

    @Override
    public String toString() {
        return "这是一个"+brand+"鼠标";
    }
}
